﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;

namespace PonGun
{
    public class MousePointer : Base2DObject
    {
        public Rectangle MouseRect { get { return new Rectangle((int)Position.X - halfWidth, (int)Position.Y - halfHeight, 1, 1); } }

        public MousePointer(Game1 game)
            : base(game)
        {
            Asset = "Textures/MousePointer";
            Width = 32;
            Height = 32;
        }

        public override void Update(Microsoft.Xna.Framework.GameTime gameTime)
        {
            Position = new Microsoft.Xna.Framework.Vector2(Game.thisMS.X + halfWidth, Game.thisMS.Y + halfHeight);
            
            base.Update(gameTime);
        }
    }
}
